package com.dimension.service;

import com.dimension.entity.User;

import java.util.List;

public interface UserService {
    User getUserInfo(long userId);

    int updateUserAvatar(Long userId, String avatar);

    int updateUserInfo(Long userId, String nickname, String description, Integer sex, String birthday);

    int updateUserPassword(Long userId, String password);

    int registerUser(String nickname, String username, String password);

    List<User> getUserTableWithUsername(String username);

    List<User> getUserTableWithNoCondition(Integer pageNum, Integer pageSize);

    Integer getTotalWithNoCondition();

    List<User> getUserTableWithNickname(Integer pageNum, Integer pageSize, String nickname);

    long getTotalWithNickname(String nickname);

    void forbidUser(Integer userId);

    void resumeUser(Integer userId);
}

